﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Default.master" AutoEventWireup="true" CodeBehind="OrderList3.aspx.cs" Inherits="Runda.EShop.Web.Order.OrderList3" %>
<%@ Register Src="~/UserControl/LeftMenu.ascx" TagPrefix="uc" TagName="LeftMenu" %> 
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
    <script src="../Content/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        function OnOrderConfirm(id) {
            window.location = 'OrderConfirm.aspx?OrderID=' + id;
            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphLeft" runat="server">
<uc:LeftMenu runat="server" ID="ucLeftMenu" TopMenuCode="Page04"/> 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMain" runat="server">
     
    <div class="i_tablebt_xian" style="margin: 10px 0px 0px 0px; width: 100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />订单列表</span>
    </div>
        <div class="clear"></div>
      <asp:GridView ID="gvOrderList" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate> 
                    <asp:Button ID="btnConfirm" runat="server" Text="确认订单" OnClientClick='<%# "return OnOrderConfirm(\""+Eval("OrderID")+"\");" %>'/>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="订单号">
                <ItemTemplate>
                    <asp:HyperLink ID="lnkView" runat="server" NavigateUrl='<%# "OrderView.aspx?OrderID="+Eval("OrderID") %>'><%# Eval("OrderCode") %></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="OrderDate" HeaderText="订单时间" DataFormatString="{0:yyyy-MM-dd}"/>
            <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                    <asp:Label ID="lblStatus" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb" 
    CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
    ShowCustomInfoSection="Left" CustomInfoSectionWidth="180px" 
    NumericButtonCount="10"></webdiyer:AspNetPager>
</asp:Content>
